package tech.aistar.day06.homework01;

/**
 * 本类用来演示:
 *
 * @author: success
 * @date: 2021/3/16 8:59 上午
 */
public class Rect extends Shape{
    private int len;

    private int width;

    public Rect(){

    }

    public Rect(int len,int width){
        this.len = len;
        this.width = width;
    }

    @Override
    public double area() {
        return len*width;
    }

    @Override
    public double girth() {
        return 2*(len+width);
    }
}
